class Page < Item

  validates_uniqueness_of :title
  
  def before_destroy
    # Never kill the index page
    raise "You can't destroy the index page" if self.title == 'Index'
  end
  
end
